﻿@model EAM.Model.AssetCategory          
@{
    ViewBag.Title = "资产分类编辑";
}
<style type="text/css">
    label { margin-right: 10px; }
</style>
<div style="padding: 10px;">
    <div style="padding-bottom: 5px;">
        <input type="button" onclick="history.go(-1)" value="返回资产分类列表" class="btn_green" />
    </div>
    @using (Html.BeginForm())
    {
        <div style="line-height: 30px; font-weight: bold; color: Red;">
        </div>
        <table class="tb">
            <tr>
                <td>名称</td>
                <td>@Html.TextBoxFor(m => m.CategoryName)
                </td>
                <td>标签开头</td>
                <td>
                    @Html.TextBoxFor(m => m.CategoryLabel)
                </td>
            </tr>
            <tr>
                <td>关键字</td>
                <td>
                    @Html.TextBoxFor(m => m.CategoryKeywords)
                </td>
                <td>计量单位</td>
                <td>
                    @Html.TextBoxFor(m => m.CategoryMeasure_Unit)
                </td>
            </tr>
            <tr>
                <td>父类型</td>
                <td>
                    @Html.DropDownListFor(m => m.CategoryParentID, new SelectList((Dictionary<int, string>)ViewData["CategoryParentIDList"], "key", "value"), "请选择类型")
                </td>
                <td>是否显示</td>
                <td>
                    @Html.CheckBoxFor(m => m.CategoryIsShow)
                </td>
            </tr>
            <tr>
                <td>年折旧率</td>
                <td>
                    @Html.TextBoxFor(m => m.CategoryDepriciationRate, new { @Value = "0" })
                </td>
                <td>月折旧率</td>
                <td>
                    @Html.TextBoxFor(m => m.CategoryMonthDepriciationRate, new { @Value = "0" })
                </td>
            </tr>
            <tr>
                <td>使用年限</td>
                <td>
                    @Html.TextBoxFor(m => m.CategoryUsedYear, new { @Value = "0" })
                </td>
                <td>显示顺序</td>
                <td>
                    @Html.TextBoxFor(m => m.CategorySort_Order, new { @Value = "0" })
                </td>
            </tr>
            <tr>
                <td>维护周期(单位天)</td>
                <td>
                    @Html.TextBoxFor(m => m.CategoryMaintenanCycle, new { @Value = "0" })
                </td>
                <td>@Html.LabelFor(m => m.CategoryNumCount)</td>
                <td>
                    @Model.CategoryShowNumCount
                    @Html.HiddenFor(m => m.CategoryNumCount)
                    @Html.HiddenFor(m => m.CategoryShowNumCount)
                </td>
            </tr>
            <tr>
                <td>值方式</td>
                <td>
                    @Html.DropDownListFor(m => m.CategoryChooseType, new SelectList((Dictionary<int, string>)ViewData["CategoryChooseTypeList"], "key", "value"), "请选择类型")
                </td>
                <td>类型值(以‘,’分隔)</td>
                <td>
                    @Html.TextAreaFor(m => m.CategoryChooseValue, 8, 20, "")
                </td>
            </tr>
            <tr>
                <td>描述</td>
                <td colspan="3">
                    @Html.TextAreaFor(m => m.CategoryDescript, 8, 60, "")
                </td>
            </tr>
            <tr>
                <td></td>
                <td colspan="3">
                    <input type="submit" value="保存" class="btn_green" />
                    <input type="reset" value="重置" class="btn_orange" />
                </td>
            </tr>
        </table>
    }
</div>
